package com.newpage.module_gather.contract;

import com.wetao.lib_common.base.BasePresenter;
import com.wetao.lib_common.base.BaseResponse;
import com.wetao.lib_common.base.BaseViewImp;
import com.wetao.lib_common.bean.response.SubjectInfo;
import com.wetao.lib_common.bean.response.WrongQuestionInfo;

import java.util.HashMap;

/**
 * author: zhouyh
 * created on: 2021/6/17 6:49 下午
 * description:
 */
public interface QuestionDetailCon {

    interface View extends BaseViewImp {

        void getWrongQuestionInfoResult(WrongQuestionInfo resp);
        void getWrongQuestionInfoFail();
        void removeWrongQuestionResult(BaseResponse resp,String action);
        void removeWrongQuestionFail();
        void updateUnderstandSuccess(BaseResponse resp);
        void updateUnderstandFail();

        void revisionWrongQuestionResult(BaseResponse resp);
        void revisionWrongQuestionFail();


    }

    abstract class Presenter extends BasePresenter<QuestionDetailCon.View> {

        public abstract void getWrongQuestionInfo(HashMap<String, String> map, boolean isDialog, boolean cancelable);
        public abstract void removeWrongQuestion(HashMap<String, Object> map, boolean isDialog, boolean cancelable,String action);
        public abstract void updateUnderstand(HashMap<String, Object> map,boolean isDialog, boolean cancelable);
        //提交订正
        public abstract void revisionWrongQuestion(String reqStr,boolean isDialog, boolean cancelable);
    }
}
